<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <title>会员列表</title>
        <link href="{$Think.config.backcss_path}/mine.css" type="text/css" rel="stylesheet" />
        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    </head>
    <body>
        <style>
            .tr_color{background-color: #9F88FF}
            .current{
                margin-left: 15px;
            }
            .num{
                margin-left: 15px;
            }
        </style>
        <div class="div_head">
            <span>
                <span style="float: left;">当前位置是：权限管理-》分配权限</span>
            </span>
        </div>
        <div></div>
<h2>当前分配权限的角色：{$role_info.role_name}</h2>
        <form action="" method="post" >
        <div style="font-size: 13px; margin: 10px 5px;">
            <table class="table_a" border="1" width="100%">
                <tbody>

                <foreach name="level0" item="l0">
                    <tr>
                        <td><input type='checkbox' name='auth_id[]' value='{$l0.auth_id}'
                            <in name="l0['auth_id']" value="$role_info['role_auth_ids']">
                                checked="checked"
                            </in>
                        />{$l0.auth_name}</td>
                        <td>
                        <foreach name="level1" item="l1">
                            <if condition="$l1['auth_pid'] eq $l0['auth_id']">
                                <input type="checkbox" name="auth_id[]" value="{$l1.auth_id}"
                                <in name="l1['auth_id']" value="$role_info['role_auth_ids']">
                                    checked="checked"
                                </in>
                                />{$l1.auth_name}
                            </if>
                        </foreach>
                        </td>
                    </tr>
                </foreach>



                </tbody>
            </table>
        </div>
            <input type="hidden" name="role_id" value="{$role_info.role_id}">
            <input type="submit" value="修改" >
        </form>
    </body>
</html>